/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PainelModoJogo.java
 *
 * Created on Jun 24, 2011, 5:42:02 PM
 */
package cataletra.gui;

import cataletra.main.Main;

/**
 *
 * @author arthur
 */
public class PainelModoJogo extends javax.swing.JPanel {

    /** Creates new form PainelModoJogo */
    public PainelModoJogo() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        botaoIniciarJogo = new javax.swing.JButton();
        botaoPartidaRapida = new javax.swing.JButton();

        setLayout(new java.awt.GridBagLayout());

        botaoIniciarJogo.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
        botaoIniciarJogo.setText("Iniciar Jogo");
        botaoIniciarJogo.setMinimumSize(new java.awt.Dimension(170, 40));
        botaoIniciarJogo.setPreferredSize(new java.awt.Dimension(170, 40));
        botaoIniciarJogo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clicarBotaoIniciarJogo(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(15, 15, 15, 15);
        add(botaoIniciarJogo, gridBagConstraints);

        botaoPartidaRapida.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
        botaoPartidaRapida.setText("Partida Rápida");
        botaoPartidaRapida.setMinimumSize(new java.awt.Dimension(170, 40));
        botaoPartidaRapida.setPreferredSize(new java.awt.Dimension(170, 40));
        botaoPartidaRapida.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clicarBotaoPartidaRapida(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.insets = new java.awt.Insets(15, 15, 15, 15);
        add(botaoPartidaRapida, gridBagConstraints);
    }// </editor-fold>//GEN-END:initComponents

    private void clicarBotaoIniciarJogo(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clicarBotaoIniciarJogo
        Main.getJanelaPrincipal().iniciarJogo();
    }//GEN-LAST:event_clicarBotaoIniciarJogo

    private void clicarBotaoPartidaRapida(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clicarBotaoPartidaRapida
        Main.getJanelaPrincipal().partidaRapida();
    }//GEN-LAST:event_clicarBotaoPartidaRapida

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botaoIniciarJogo;
    private javax.swing.JButton botaoPartidaRapida;
    // End of variables declaration//GEN-END:variables
}
